//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.example.service;

import com.example.entity.Club;
import com.example.entity.Clubmember;
import com.example.entity.ClubApplication;
import com.example.mapper.ClubMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.Iterator;
import java.util.List;

public interface ClubService {
    void add(Club club);
    
    void updateById(Club club);
    
    void updateImageUrl(Club club);
    
    void deleteById(Integer id);
    
    void deleteBatch(List<Integer> ids);
    
    Club selectById(Integer id);
    
    List<Club> selectAll(Club club);
    
    List<Club> selectList(Club club);
    
    PageInfo<Club> selectPage(Club club, Integer pageNum, Integer pageSize);
    
    List<Club> selectByPresidentId(Integer presidentId);
    
    void joinClub(Integer clubId, Integer studentId);
    
    boolean checkMember(Integer clubId, Integer studentId);
    
    boolean checkApplication(Integer clubId, Integer studentId);
    
    void quitClub(Integer clubId, Integer studentId);
    
    List<Club> selectByStudentId(Integer studentId);
}
